package com.foreknow.multithreading;

public class MyThread1 implements Runnable {
  @Override
  public void run() {
    //线程中要执行的操作都要在run方法中完成
    int count = 0;
    while (count<10){
      count++;
      System.out.println("Thread1:"+count);
    }
  }
}
